package com.geeaks.learn.selfuse;

import java.io.File;

public class RenameFile {
	
	public static void main(String[] args) {
		String path = "/Users/geeaks/Downloads";
		File file = new File(path);
		for(File temp : file.listFiles()) {
			String tempName = temp.getName();
			if(tempName.startsWith("nq")) {
				temp.renameTo(new File("怒晴湘西"+tempName.substring(4,6)+".mp4"));
			}
		}
	}
}
